<?php
/**
 * Created by PhpStorm.
 * User: MR_THONG
 * Date: 2/5/2015
 * Time: 10:30 AM
 */?>
<div>Tour Trong Nuoc</div>
<table style="border: 1px solid">
    <tr>
        <td rowspan="9">
            <img src="../../Upload/Images/phanthiet.jpg" width="300px"/>
        </td>
        <td >
        </td>
    </tr>
    <tr>
        <td>
            <h2><?php echo $newestForiegnTour['Tour']['title'] ?></h2>
        </td>
    </tr>
    <tr>
        <td>Ngay Khoi Hanh: <?php if ($newestForiegnTour['Tour']['start_date']){
                echo $newestForiegnTour['Tour']['start_date'];
            }else{
                echo 'Updating...';
            }
            ?>
        </td>
    </tr>
    <tr>
        <td>
            Thoi gian: <?php if ($newestForiegnTour['Tour']['schedule']){
                echo $newestForiegnTour['Tour']['schedule'];
            }else{
                echo 'Updating...';
            }
            ?>
        </td>
    </tr>
    <tr>
        <td>
            Khach san: <?php if ($newestForiegnTour['Tour']['hotel_start']){
                echo $newestForiegnTour['Tour']['hotel_start'].' sao';
            }else{
                echo 'Updating...';
            }
            ?>
        </td>
    </tr>
    <tr>
        <td>
            Diem xuat phat: <?php if ($newestForiegnTour['Tour']['start_point']){
                echo $newestForiegnTour['Tour']['start_point'];
            }else{
                echo 'Updating...';
            }
            ?>
        </td>
    </tr>
    <tr>
        <td>
            Phương Tiện: <?php if ($newestForiegnTour['Tour']['vehicle']){
                echo $newestForiegnTour['Tour']['vehicle'];
            }else{
                echo 'Updating...';
            }
            ?>
        </td>
    </tr>
    <tr>
        <td>
            Giá: <?php if ($newestForiegnTour['Tour']['price']){
                echo $newestForiegnTour['Tour']['price'].',000'.',000';
            }else{
                echo 'Updating...';
            }
            ?>
        </td>
    </tr>
    <tr>
        <td style="float: right">
            <a href="#">DAT TOUR</a>
        </td>
    </tr>
</table>

<table>
    <?php
        $i=0;
        foreach($newTour as $new) { $i++?>
        <tr>
            <td rowspan="3" style="border-bottom: 2px solid red"><?php echo $i?></td>
        </tr>
        <tr>
            <td><a href="#"><?php echo $new['Tour']['title']?></a></td>
            <td><?php echo $new['Tour']['schedule']?></td>
        </tr>
        <tr>
            <td style="border-bottom: 2px solid red"><?php echo $new['Tour']['start_date']?></td>
            <td style="border-bottom: 2px solid red"><?php echo $new['Tour']['price']?></td>
        </tr>
    <?php }?>
</table>